/**
 * http://surenpi.com
 */
package autotest.web.framework.plugin.wizards;

import org.eclipse.core.resources.IResource;
import org.eclipse.jdt.ui.wizards.NewClassWizardPage;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;

/**
 * @author suren
 * @date Jul 23, 2016 8:51:44 AM
 */
public abstract class NewWizard extends Wizard implements INewWizard
{

	protected IWorkbench currentWorkbench;
	protected IStructuredSelection currentSelection;

	@Override
	public void init(IWorkbench workbench, IStructuredSelection currentSelection) {
		this.currentSelection = currentSelection;
		this.currentWorkbench = workbench;
	}
	
	public void openFile(NewClassWizardPage newPOWizardPage){
		if(newPOWizardPage == null){
			return;
		}
		
		IResource resource = newPOWizardPage.getModifiedResource();
		if(resource != null){
//			IDEUtil.openFile(currentWorkbench, resource);
		}
	}
}
